package org.monkey.example.request.entity.form;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.monkey.common.cbs.entity.form.BaseListForm;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@ApiModel
@NoArgsConstructor
@AllArgsConstructor
public class RequestInfoListForm extends BaseListForm {

  @ApiModelProperty(name = "startTime", value = "请求开始时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date startTime;
  @ApiModelProperty(name = "request", value = "请求参数")
  private String request;
  @ApiModelProperty(name = "headers", value = "请求头")
  private String headers;
  @ApiModelProperty(name = "response", value = "请求返回数据")
  private String response;
  @ApiModelProperty(name = "customerData", value = "业务自定义数据")
  private String customerData;
  @ApiModelProperty(name = "endTime", value = "请求结束时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date endTime;
  @ApiModelProperty(name = "ip", value = "请求ip")
  private String ip;
  @ApiModelProperty(name = "url", value = "请求url")
  private String url;
  @ApiModelProperty(name = "httpMethod", value = "http方法")
  private String httpMethod;
  @ApiModelProperty(name = "methodName", value = "java方法")
  private String methodName;
  @ApiModelProperty(name = "remark", value = "备注")
  private String remark;
  @ApiModelProperty(name = "tags", value = "标签")
  private String tags;
}
